import Vue from 'vue'

export default {
  showCart(callback){
    Vue.axios.get(Vue.prototype.$g.cart).then(res=>{
        callback(res.data);
    });
  },
  deleteCartDetail:function (config,callback){
    Vue.axios.post('http://localhost:8080/shoppingcartdetail/remove',
      config
    ).then(r=>{
      callback(r.data);
    });
  },
  delshoppingcartdetail:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.delshoppingcartdetail,config).then(r=>{
      callback(r);
    });
  },
}